<?php 
	if($_SESSION['login']!='YES'){
		echo "<script> document.location.href='invalid.php';</script>"; 
	}
?>

<header class="header-wrapper">
	<div class="container">
		<div class="header row">
			<div class="span4">
				<img src="img/logo.png" style="height: 100px; margin: 20px auto;"/>
			</div>	
			<div class="user pull-right span4 crimsonLink">
				<a class="badge" href="logout.php">Logout</a><br/><br/>
				<a href="#"><?echo $_SESSION['nick'];?></a><br/><?echo $_SESSION['college']." ".$_SESSION['dept'];?><br/>
			</div>
		</div>
		<div class="navbar menubar">
			<ul class="nav nav-pills">
				<li id="exam"><a href="exam.php">EXAM</a></li>
				<li id="qna"><a href="qna.php">Q &amp; A</a></li>
				<li id="resource"><a href="resource.php">RESOURCE</a></li>
			</ul>
			<ul class="nav nav-pills pull-right">
				<li class="nav pull-right dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown"> My information <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="myupload.php"> My Upload</a></li>
						<li><a href="mydownload.php"> My Download</a></li>
						<li><a href="myqna.php"> My Q &amp; A</a></li>
						<li><a href="setting.php"><i class="icon-user"></i> Setting</a></li>						
					</ul>					
				</li>
			</ul>
		</div>
	</div>
</header>